package org.x.usermod.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.lang.Long;
import java.util.Date;
import java.lang.String;
import java.lang.Integer;

/**
 * 部门表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@Table(value = "sys_dept")
public class SysDeptEntity {

    /**
     * 部门ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 部门名称
     */
    @Column(value = "name")
    private String name;

    /**
     * 父部门ID
     */
    @Column(value = "parent_id")
    private Long parentId;

    /**
     * 层级路径（如1.2.3）
     */
    @Column(value = "level")
    private String level;

    /**
     * 排序
     */
    @Column(value = "sort")
    private Integer sort;

    /**
     * 逻辑删除
     */
    @Column(value = "is_delete")
    private Integer isDelete;

    /**
     * 创建人
     */
    @Column(value = "created_by")
    private String createdBy;

    /**
     * 更新人
     */
    @Column(value = "updated_by")
    private String updatedBy;

    /**
     * 创建时间
     */
    @Column(value = "created_time")
    private Date createdTime;

    /**
     * 更新时间
     */
    @Column(value = "updated_time")
    private Date updatedTime;
}
